﻿package com.bumpslide.data {	import com.bumpslide.net.IResponder;		/**	 * Barebones IResponder implementation	 * 	 * @author David Knape	 */	public class Callback implements IResponder {				private var _resultHander:Function;		private var _faultHandler:Function;				public function Callback( result_handler:Function, fault_handler:Function=null) {			_resultHander = result_handler;			_faultHandler = fault_handler;		}		public function fault(info:Object):void {			if(_faultHandler is Function) {				try { 					_faultHandler.call( null, info );				} catch (e:ArgumentError) {					_faultHandler.call( null );				}			}		}				public function result(data:Object):void {			if(_resultHander is Function) {				try { 					_resultHander.call( null, data );				} catch (e:ArgumentError) {					_resultHander.call( null );				}			}		}	}}